package com.itheima.day08;
/*
案例8: 分割字符串
 */

import java.util.Scanner;

public class StudentTest08 {

    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入学生信息:");
        String stu=sc.nextLine();

        String[] str=stu.split(",");

        System.out.println(str[0]);
        System.out.println(str[1]);

        System.out.println("----------");

    /*
        Student08 st=new Student08("之间的",21);
        System.out.println(st.getName()+","+st.getAge());
   */

    }
}
